<template>
	<view>
		<view class="sortTitle">
			授信银行
			<view class="toLog" @click="toList">授信记录<u-icon name="arrow-right" size="24"></u-icon></view>
		</view>
		<view class="creditList">
			<bankList ref="bankList"></bankList>
		</view>

		<u-no-network></u-no-network>
	</view>
</template>

<script>
	import bankList from '@/components/bankList.vue'
	import moment from "moment"
	import banks from '../../static/bankData.js'
	export default {
		components: {
			bankList
		},
		data() {
			return {
				banksList: [],
			}
		},
		onReady() {

		},
		onLoad() {

		},
		onShow() {
			this.$refs.bankList.getBankList()
		},
		methods: {
			toList() {
				uni.navigateTo({
					url: "/pages/creditLog/index"
				})
			}
		}
	};
</script>

<style scoped lang="scss">
	.sortTitle {
		height: 68rpx;
		background: #F7F7F7;
		display: flex;
		line-height: 68rpx;
		padding: 0 30rpx;
		color: #969696;

		.toLog {
			margin-left: auto;
		}
	}
</style>